﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace RastinArgham.CRM.Web
{
    public partial class show_image : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!String.IsNullOrEmpty(Request.QueryString["ContactId"]) && !String.IsNullOrEmpty(Request.QueryString["Type"]))
            {
                if ( String.IsNullOrEmpty(Request.QueryString["OrderId"]) )
                    imgFullSize.Src = "~/GetImage.ashx?ContactId=" + Request.QueryString["ContactId"] + "&Type=" + Request.QueryString["Type"];
                else
                    imgFullSize.Src = "~/GetImage.ashx?ContactId=" + Request.QueryString["ContactId"] + "&Type=" + Request.QueryString["Type"] + "&OrderId=" + Request.QueryString["OrderId"];
            }
        }
    }
}